﻿using HalconDotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace thinger.VisionModels
{
    public  class CaliperParam
    {
        //获取点的选择
        public HTuple CaliperWidth;	    //卡尺工具宽度
        public HTuple CaliperHeight;	    //卡尺工具高度
        public HTuple CaliperElements;		    //卡尺工具数量

        public HTuple CaliperSigma;			    //卡尺工具边缘点滤波系数
        public HTuple CaliperTransition;	        //卡尺工具边缘点极性
        public HTuple CaliperPointSelect;	    //卡尺工具边缘点选择
        public HTuple CaliperThreshold;         //卡尺工具边缘点阈值

        public HObject BlobRegion;
        public HTuple BloBThrehold;

        public HTuple ResultCenterX;
        public HTuple ResultCenterY;
        public HTuple ResultA;

        public HTuple RefAngle;

        public CaliperParam()
        {
            CaliperWidth = 30;
            CaliperHeight = 30;
            CaliperElements = 20;
            CaliperThreshold = 15;
            CaliperSigma = 1;
            CaliperTransition = "positive";
            CaliperPointSelect = "last";
            RefAngle = 0;
        }

    }
}
